package com.webchat.chat.dao;

import com.webchat.chat.core.Mapper;
import com.webchat.chat.core.dto.customerDto.UserDto;
import com.webchat.chat.model.SocketClient;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SocketClientMapper extends Mapper<SocketClient> {

    SocketClient selectSocketClientByClientId(@Param("clientId") String clientId);

    SocketClient selectSocketClientByUserId(@Param("userId") String userId);

    List<SocketClient> selectByRoomId(@Param("roomId") String roomId);

    List<SocketClient> selectByStatus(SocketClient socketClient);

    List<UserDto> findCustomer(String tenantCode);
}